package com.tedu.day02.oop;

/**
 * final
 */
class People{
    public /*final*/ void test(){
        System.out.println("父类---重写");
    }
}
class Man extends People {
    public void test() {
        System.out.println("子类---重写");
    }
    public void test(int i,int j){
        System.out.println("子类---重载");
    }
}
class WoMan extends Man{

}

    public class final关键字 {
        public static void main(String[] args) {
            Man man=new Man();
            man.test();
            man.test(1,1);
        }

    }
